package com.letv.whatslive.model.dto;

import com.letv.whatslive.model.Start_ImageSrc;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by gaoshan on 15-10-23.
 */
@Setter
@Getter
public class StartConsDTO {

    private Long startTime;
    private Long endTime;
    private Long showSeconds;
    private String pic;
    private Long updateTime;


    public StartConsDTO(){

    }

    public StartConsDTO(boolean isDefault){
        this.setStartTime(1445601865077l);
        this.setEndTime(1447701865077l);
        this.setShowSeconds(3L);
        this.setPic("http://g3.letv.cn/vod/v1/MTE2LzMyLzQ1L2xldHYtaXR2Mi8wL3N0YXRpY2ZpbGUvaW1ncy8yMDE1MDMwMy9mODhiNGExYzMzOWQ3ZDUyNzQ3YjIwYThmNzlmMzFmZC5qcGc=?b=123456&platid=5&splatid=500");
        this.setUpdateTime(1445601865078l);
    }

    public StartConsDTO(Start_ImageSrc startImageSrc) {

        this.setStartTime(startImageSrc.getStartTime());
        this.setEndTime(startImageSrc.getEndTime());
        this.setShowSeconds(startImageSrc.getShowTime());
        this.setPic(startImageSrc.getPicUrl());
        this.setUpdateTime(startImageSrc.getUpdateTime());

    }

    public StartConsDTO(Long updateTime) {

        this.setStartTime(0L);
        this.setEndTime(0L);
        this.setShowSeconds(0L);
        this.setPic("");
        this.setUpdateTime(updateTime);

    }
}
